﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M24 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "Status",
                table: "t_StackingStorage",
                type: "int",
                nullable: false,
                comment: "状态：0-失效；1-生效；2-上架",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "状态：0-失效；1-生效；");

            migrationBuilder.AddColumn<int>(
                name: "FullStatus",
                table: "FullBoxRecords",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "MaterialCode",
                table: "FullBoxRecords",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "FullStatus",
                table: "FullBoxRecords");

            migrationBuilder.DropColumn(
                name: "MaterialCode",
                table: "FullBoxRecords");

            migrationBuilder.AlterColumn<int>(
                name: "Status",
                table: "t_StackingStorage",
                type: "int",
                nullable: false,
                comment: "状态：0-失效；1-生效；",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "状态：0-失效；1-生效；2-上架");
        }
    }
}
